tests: Use "bash strict mode"
authorColin Walters <walters@verbum.org>
Wed, 27 Jan 2016 16:44:10 +0000 (11:44 -0500)
committerColin Walters <walters@verbum.org>
Wed, 27 Jan 2016 16:44:10 +0000 (11:44 -0500)
commit5ebe43859d284a003e240e0cfe66b5185681e993
tree9a50ffcbfc1688f0abeab58cfe8502b30c576d0c
parent3d2322db7a609fb4653ce6bf6c4b96b0c315a5b7
tests: Use "bash strict mode"

I noticed in the static deltas tests, there were some tests that
should have been under `-o pipefail` to ensure we properly propagate
errors.

There were a few places where we were referencing undefined variables.

Overall, this is clearly a good idea IMO.
48 files changed:
tests/admin-test.sh
tests/archive-test.sh
tests/basic-test.sh
tests/libtest.sh
tests/pull-test.sh
tests/test-admin-deploy-2.sh
tests/test-admin-deploy-clean.sh
tests/test-admin-deploy-etcmerge-cornercases.sh
tests/test-admin-deploy-grub2.sh
tests/test-admin-deploy-karg.sh
tests/test-admin-deploy-switch.sh
tests/test-admin-deploy-syslinux.sh
tests/test-admin-deploy-uboot.sh
tests/test-admin-instutil-set-kargs.sh
tests/test-admin-locking.sh
tests/test-admin-pull-deploy-commit.sh
tests/test-admin-upgrade-not-backwards.sh
tests/test-admin-upgrade-unconfigured.sh
tests/test-archivez.sh
tests/test-auto-summary.sh
tests/test-basic-user.sh
tests/test-basic.sh
tests/test-commit-sign.sh
tests/test-corruption.sh
tests/test-delta.sh
tests/test-gpg-signed-commit.sh
tests/test-help.sh
tests/test-libarchive.sh
tests/test-local-pull-depth.sh
tests/test-local-pull.sh
tests/test-oldstyle-partial.sh
tests/test-prune.sh
tests/test-pull-archive-z.sh
tests/test-pull-commit-only.sh
tests/test-pull-corruption.sh
tests/test-pull-depth.sh
tests/test-pull-large-metadata.sh
tests/test-pull-metalink.sh
tests/test-pull-mirror-summary.sh
tests/test-pull-resume.sh
tests/test-pull-subpath.sh
tests/test-pull-summary-sigs.sh
tests/test-remote-add.sh
tests/test-remote-gpg-import.sh
tests/test-repo-checkout-subpath.sh
tests/test-reset-nonlinear.sh
tests/test-setuid.sh
tests/test-xattrs.sh